<template>
	<!-- 字体选择 -->
	<view v-if="show" class="text-popup">
		<view class="popup-shadow"></view>
		<view class="popup-content">
			<view class="item">
				<view class="iconfont icon-fuzhi"></view>
				<view class="name">复制</view>
			</view>
			<view class="item">
				<view class="iconfont icon-xiugaibaobiaomoban"></view>
				<view class="name">笔记</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name:"textPopup",
		props: {
			
		},
		watch: {
			
		},
		data() {
			return {
				show: false
			};
		},
		created(){
		},
		mounted(){
			
		},
		methods: {
			openModal() {
			    this.show = true;
			},
			closeModal() {
			    this.show = false;
			    this.$emit('close'); // 触发关闭事件
			}
		},
		beforeDestroy(){
			
		}
	}
</script>

<style lang="scss" scoped>
	.text-popup{
		position: fixed;
		z-index: 111;
	}
	.text-popup,.popup-shadow{
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
	}
	.popup-shadow{
		// background-color: rgba(0, 0, 0, 0.4); /* 黑色半透明 */
		// backdrop-filter: blur(4px); /* 背景模糊 4px */
	}
	.popup-shadow,.popup-content{
		position: absolute;
	}
	.popup-content{
		display: flex;
		justify-content: center;
		align-items: center;
		top: 300rpx;
		right: 94rpx;
		width: 290rpx;
		height: 136rpx;
		border-radius: 14rpx;
		box-shadow: 12rpx 12rpx 18rpx 2rpx rgba(0,0,0,0.21);
		background-color: #fff;
		font-size: 22rpx;
		font-weight: 600;
		color: #1C1C1C;
		.item{
			&:first-child{
				margin-right: 96rpx;
			}
		}
		.iconfont{
			margin-bottom: 8rpx;
			font-size: 50rpx;
		}
	}
</style>